package com.demo.wormhole.component.mvc.configuration;

import com.demo.wormhole.component.mvc.interceptor.MvcWormholeWebInterceptor;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class WormholeMVCConfiguration implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addWebRequestInterceptor(new MvcWormholeWebInterceptor())
                .addPathPatterns("/**");
    }
}
